TreeMenu: Don't manually reinvent g_list_index()
authorDaniel Boles <dboles.src@gmail.com>
Sat, 20 Oct 2018 14:19:11 +0000 (15:19 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Wed, 7 Nov 2018 20:32:55 +0000 (20:32 +0000)
commit3194c394717e38fec0b74a46ffc01f47d2bde1bc
treeb8f2b4c1811b2ee0df90538b8decc2a14cb4c15d
parentb4b30b4951481ef20cd1f80186520e9e9b583dd8
TreeMenu: Don't manually reinvent g_list_index()

g_list_index() "Gets the position of the element containing the given
data (starting from 0)." That is exactly what we were manually doing.
gtk/gtktreemenu.c